import { App, Plugin } from 'vue'
import Form from './src/Form'
import type { WidgetOptions, FormEvent, FormEvents } from './src/types'
import type { RuleItem } from './src/types/rule'

export type { WidgetOptions, FormEvent, FormEvents, RuleItem }

Form.install = (app: App) => {
  app.component(Form.name, Form)
}

export default Form as typeof Form & Plugin
